package jsyf.oa.entity.weekplan;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by LT on 2018/3/22.
 */
@Entity
@Table(name = "T_WRT_CUSTOMER_VIST_PLAN", schema = "oa", catalog = "")
public class TomorrowVisitPlanEntity extends BaseEntity implements Serializable {
    private String customerName;
    private String lastVisitTime;
    private String customerAddress;
    private String intentionDevice;
    private String remake;
    private String createUserId;
    private String customerIndustry;
    private String wId;
    private String reportDate;
    private String visitMethod;
    private String visitGoal;
    private String entourage;
    private String county;

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getVisitMethod() {
        return visitMethod;
    }

    public void setVisitMethod(String visitMethod) {
        this.visitMethod = visitMethod;
    }

    public String getReportDate() {
        return reportDate;
    }

    public void setReportDate(String reportDate) {
        this.reportDate = reportDate;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getLastVisitTime() {
        return lastVisitTime;
    }

    public void setLastVisitTime(String lastVisitTime) {
        this.lastVisitTime = lastVisitTime;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    public String getIntentionDevice() {
        return intentionDevice;
    }

    public void setIntentionDevice(String intentionDevice) {
        this.intentionDevice = intentionDevice;
    }

    public String getRemake() {
        return remake;
    }

    public void setRemake(String remake) {
        this.remake = remake;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }


    public String getCustomerIndustry() {
        return customerIndustry;
    }

    public void setCustomerIndustry(String customerIndustry) {
        this.customerIndustry = customerIndustry;
    }


    public String getwId() {
        return wId;
    }

    public void setwId(String wId) {
        this.wId = wId;
    }

    public String getVisitGoal() {
        return visitGoal;
    }

    public void setVisitGoal(String visitGoal) {
        this.visitGoal = visitGoal;
    }

    public String getEntourage() {
        return entourage;
    }

    public void setEntourage(String entourage) {
        this.entourage = entourage;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("CUSTOMER_NAME", this.getCustomerName());
        obj.put("LAST_VISIT_TIME", this.getLastVisitTime());
        obj.put("CUSTOMER_ADDRESS", this.getCustomerAddress());
        obj.put("INTENTION_DEVICE", this.getIntentionDevice());
        obj.put("REMAKE", this.getRemake());
        obj.put("CREATE_USER_ID", this.getCreateUserId());
        obj.put("CREATE_TIME", this.getCreateTime());
        obj.put("CUSTOMER_INDUSTRY", this.getCustomerIndustry());
        obj.put("W_ID", this.getwId());
        obj.put("REPORT_DATE", this.getReportDate());
        obj.put("VISIT_METHOD", this.getVisitMethod());
        obj.put("VISIT_GOAL", this.getVisitGoal());
        obj.put("ENTOURAGE", this.getEntourage());
        obj.put("COUNTY", this.getCounty());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_WRT_CUSTOMER_VIST_PLAN";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CUSTOMER_NAME", "customerName");
        obj.put("LAST_VISIT_TIME", "lastVisitTime");
        obj.put("CUSTOMER_ADDRESS", "customerAddress");
        obj.put("INTENTION_DEVICE", "intentionDevice");
        obj.put("REMAKE", "remake");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("CUSTOMER_INDUSTRY", "customerIndustry");
        obj.put("W_ID", "wId");
        obj.put("REPORT_DATE", "reportDate");
        obj.put("VISIT_METHOD", "visitMethod");
        obj.put("VISIT_GOAL", "visitGoal");
        obj.put("ENTOURAGE", "entourage");
        obj.put("COUNTY", "county");
        return obj;
    }
}
